
<?php
use yii\helpers\Url;
use app_supplier\assets\SuppAssets;
SuppAssets::addCss($this, '@web/css/button.css');
?>
<div class="box">
    <div class="heading">
        <h1><img src="<?=Url::to('@web/images/')?>category.png" alt=""> 库存记录管理</h1>
        <div class="buttons">
            <a href="<?=Url::to(['inventory/enter_warehouse'])?>" class="button"><span>新增入库</span></a>

            <a href="<?=Url::to(['inventory/out_warehouse'])?>" class="button"><span>新增出库</span></a>
        </div>
    </div>
    <div class="content">
        <form action="" method="post" enctype="multipart/form-data" id="form">
            <table id="tbl_list" class="list">
                <thead>
                <tr>
                    <td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);"></td>
                    <td class="center">操作类型</td>
                    <td class="center">                <a href="/store/demo/inventory/warehousing_list?sort=header_number&amp;store_id=28&amp;order=ASC">记录编号</a>
                    </td>
                    <td class="center">                <a href="/store/demo/inventory/warehousing_list?sort=date_added&amp;store_id=28&amp;order=ASC" class="desc">添加时间</a>
                    </td>
                    <td class="center">供应商/调拨</td>
                    <td class="center">操作人员</td>
                    <td class="center">状态</td>
                    <td class="center">备注信息</td>
                </tr>
                </thead>
                <tbody>
                <tr class="filter">
                    <td></td>
                    <td class="center"><select name="filter_operation_type" onchange="javascript:filter();">
                            <option value="*"></option>
                            <option value="1">采购入库</option>
                            <option value="2">销售出库</option>
                            <option value="3">其它入库</option>
                            <option value="4">其它出库</option>
                            <option value="5">盘盈入库</option>
                            <option value="6">盘亏出库</option>
                            <option value="7">调拨入库</option>
                            <option value="8">调拨出库</option>
                        </select>
                    </td>
                    <td align="center">
                        <input type="text" name="filter_record_id" value="" style="text-align: right;width:120px;">
                    </td>
                    <td>&nbsp;</td>
                    <td class="center">  <select id="choose_dealer" name="filter_dealer" onchange="javascript:filter();" style="width:120px; height:30px; margin-right:10px;vertical-align:middle;">
                            <option value="*">所有供应商/调拨店</option>
                            null                                                <option value="14,1">车保无忧试用</option>
                            null                                                <option value="13,1">大拇指</option>
                            null                                                <option value="12,1">测试供应商2</option>
                            null                                                <option value="11,1">测试供应商1</option>
                        </select>
                    </td>
                    <td class="center">
                        <select style="width:120px; height:30px; margin-right:10px;vertical-align:middle;" name="filter_worker" onchange="javascript:filter();">
                            <option selected="selected" value="*">所有工作人员</option>
                            <option value="王伟奇">王伟奇</option>
                            <option value="李想">李想</option>
                            <option value="张峰">张峰</option>
                            <option value="王斌">王斌</option>
                            <option value="王武">王武</option>
                            <option value="林冲">林冲</option>
                            <option value="施卫康">施卫康</option>
                            <option value="仇彬彬">仇彬彬</option>
                            <option value="仝乐">仝乐</option>
                            <option value="李四">李四</option>
                            <option value="胡云龙">胡云龙</option>
                            <option value="范欢欢">范欢欢</option>
                            <option value="梁朝辉">梁朝辉</option>
                            <option value="张如意">张如意</option>
                            <option value="吴林晨">吴林晨</option>
                            <option value="王二麻子">王二麻子</option>
                            <option value="郑才贵">郑才贵</option>
                            <option value="韩雨晴">韩雨晴</option>
                            <option value="周晓燕">周晓燕</option>
                            <option value="孟艳丽">孟艳丽</option>
                            <option value="小季">小季</option>
                            <option value="小小">小小</option>
                            <option value="大大">大大</option>
                            <option value="杨立强">杨立强</option>
                            <option value="杨家将">杨家将</option>
                        </select>&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="center">
                        <select name="filter_state" autocomplete="off" id="state" onchange="javascript:filter();">
                            <option value="" selected="selected">所有状态</option>
                            <option value="0">待审核</option>
                            <option value="1">已审核</option>
                            <!--option  value="1" >调拨完成</option-->
                            <option value="2">已取消</option>



                        </select>&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <script>
                        $(function(){
                            $("#state option:nth-child(3)").attr('selected');
                        })
                    </script>
                    <td class="center">
                        <a onclick="filter();" class="button"><span>筛选</span></a>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18531">
                    </td>
                    <td class="center">销售出库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=M281702070001">M281702070001</a>
                    </td>
                    <td class="center">2017-02-07 09:47:58</td>
                    <td class="center">--</td>
                    <td class="center">王伟奇</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18530">
                    </td>
                    <td class="center">销售出库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=M281701240004">M281701240004</a>
                    </td>
                    <td class="center">2017-01-24 17:25:43</td>
                    <td class="center">--</td>
                    <td class="center">王伟奇</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18529">
                    </td>
                    <td class="center">销售出库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=M281701240003">M281701240003</a>
                    </td>
                    <td class="center">2017-01-24 16:20:21</td>
                    <td class="center">--</td>
                    <td class="center">王伟奇</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18528">
                    </td>
                    <td class="center">采购入库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=RK2817012418528">RK2817012418528</a>
                    </td>
                    <td class="center">2017-01-24 15:25:00</td>
                    <td class="center">--</td>
                    <td class="center">张如意</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18527">
                    </td>
                    <td class="center">销售出库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=M281701240003">M281701240003</a>
                    </td>
                    <td class="center">2017-01-24 15:23:50</td>
                    <td class="center">--</td>
                    <td class="center">王伟奇</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>

                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18471">
                    </td>
                    <td class="center">采购入库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=RK2816120118471">RK2816120118471</a>
                    </td>
                    <td class="center">2016-12-01 11:53:00</td>
                    <td class="center">--</td>
                    <td class="center">仝乐,胡云龙,梁朝辉,张如意,吴林晨</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="18472">
                    </td>
                    <td class="center">采购入库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=RK2816120118472">RK2816120118472</a>
                    </td>
                    <td class="center">2016-12-01 11:42:00</td>
                    <td class="center">大拇指</td>
                    <td class="center">仝乐,胡云龙,张如意</td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                <tr>
                    <td style="text-align: center;">
                        <input type="checkbox" name="selected[]" value="17920">
                    </td>
                    <td class="center">销售出库</td>
                    <td class="center">
                        <a href="/store/demo/inventory/warehousing_view?header_number=0361602197571">0361602197571</a>
                    </td>
                    <td class="center">2016-02-19 09:30:49</td>
                    <td class="center">--</td>
                    <td class="center"></td>

                    <td class="center">
                    </td>

                    <td class="left"></td>
                </tr>
                </tbody>
            </table>
        </form>
        <div class="pagination"><div class="links"> <b>1</b>  <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=2">2</a>  <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=3">3</a>  <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=4">4</a>  <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=5">5</a>  ....  <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=2">&gt;</a> <a href="/store/demo/inventory/warehousing_list?store_id=28&amp;page=6">&gt;|</a> </div><div class="results">显示 1 - 50 之 281 (共计 6 页)</div></div>
    </div>
</div>